package cc.siyecao.mapper.provider.incrementer;

import java.util.UUID;
import java.util.concurrent.ThreadLocalRandom;

public class UUIDGenerator implements IdentifierGenerator {
    @Override
    public Object nextId() {
        ThreadLocalRandom random = ThreadLocalRandom.current();
        return new UUID( random.nextLong(), random.nextLong() ).toString().replace( "-", "" );
    }
}
